//
//  SDGroupCell.h
//  SDNestedTablesExample
//
//  Created by Daniele De Matteis on 21/05/2012.
//  Copyright (c) 2012 Daniele De Matteis. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SDSubCell.h"
#import "cImageView.h"
#import "clsDifficult.h"
#import "clsCategory.h"
static const int height = 30;
static const int subCellHeight1 = 80;
static const int subCellHeight2 = 60;

@class SDNestedTableViewController;
@interface SDGroupCell : UITableViewCell <UITableViewDelegate, UITableViewDataSource>
{
//    IBOutlet UIButton *expandBtn;
    int subCellHeight;
//    AllSubCellsCommand subCellsCommand;
}

@property (nonatomic, assign) SDNestedTableViewController *parentTable;
@property (weak, nonatomic) IBOutlet UIView *Allview;
@property (nonatomic, strong)  UILabel *lbWaybill;
@property (nonatomic, strong)  UILabel *lbStatus;
@property (nonatomic, strong)  UILabel *lbRecei;
@property (nonatomic, strong)  UILabel *lbDate;
@property (nonatomic, strong)  UILabel *lbFreight;
@property (nonatomic, weak) IBOutlet UITableView *subTable;

@property (nonatomic,assign) BOOL isExpanded;
@property (nonatomic, assign) int subCellsAmt;

@property (nonatomic, assign) NSInteger cellIndex;
@property (nonatomic, strong) UIImage* selectedIconImage;
@property (nonatomic, strong) UIImage* unSelectedIconImage;

//- (void)initView:(BOOL)expanded;
+ (int) getHeight;
+ (int) getsubCellHeight1;
+ (int) getsubCellHeight2;
- (void)FillData:(clsDifficult *)pcls;
- (void)FillDataWithCate:(clsCategory *)pcls;
@end
